/**
 * @author Administrator
 * 手机类
 */
public class Phone {
   private String brand;
   private float price;
   private String color;

   void setBrand(String brand1){
      brand=brand1;
   }
   String getBrand(){
       return brand;
   }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    void call(){
        System.out.println("可以打电话");
    }

    void play(){
        System.out.println("可以玩游戏");
    }

}
